Data-Driven Program Completion

نویسندگان

  • Yanxin Lu
  • Swarat Chaudhuri
  • Chris Jermaine
  • David Melski
چکیده

We introduce program splicing, a programming methodology that aims to automate the commonly used workƒow of copying, pasting, and modifying code available online. Here, the programmer starts by writing a “dra‰” that mixes un€nished code, natural language comments, and correctness requirements in the form of test cases or API call sequence constraints. A program synthesizer that interacts with a large, searchable database of program snippets is used to automatically complete the dra‰ into a program that meets the requirements. Œe synthesis process happens in two stages. First, the synthesizer identi€es a small number of programs in the database that are relevant to the synthesis task. Next it uses an enumerative search to systematically €ll the dra‰ with expressions and statements from these relevant programs. Œe resulting program is returned to the programmer, who can modify it and possibly invoke additional rounds of synthesis. We present an implementation of program splicing for the Java programming language. Œe implementation uses a corpus of over 3.5 million procedures from an open-source so‰ware repository. Our evaluation uses the system in a suite of everyday programming tasks, and includes a comparison with a state-of-the-art competing approach as well as a user study. Œe results point to the broad scope and scalability of program splicing and indicate that the approach can signi€cantly boost programmer productivity.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Influence of Data-Driven Exercises Through Using a Computer Program on Vocabulary Improvement in an EFL Context

The present study was conducted to evaluate data driven learning (DDL) combined with Computer Assisted Language Learning (CALL) as an approach to improving vocabulary knowledge of Iranian postgraduates majoring in teaching English, English literature and translation. The purpose was to help language learners get familiar with DDL as a student-centered method taking advantage of a computer progr...

متن کامل

The Influence of Data-Driven Exercises Through Using a Computer Program on Vocabulary Improvement in an EFL Context

The present study was conducted to evaluate data driven learning (DDL) combined with Computer Assisted Language Learning (CALL) as an approach to improving vocabulary knowledge of Iranian postgraduates majoring in teaching English, English literature and translation. The purpose was to help language learners get familiar with DDL as a student-centered method taking advantage of a computer progr...

متن کامل

Learning 3D Shape Completion from Laser Scan Data with Weak Supervision

3D shape completion from partial point clouds is a fundamental problem in computer vision and computer graphics. Recent approaches can be characterized as either datadriven or learning-based. Data-driven approaches rely on a shape model whose parameters are optimized to fit the observations. Learning-based approaches, in contrast, avoid the expensive optimization step and instead directly predi...

متن کامل

Does Participation in Farmer Field School Extension Program Improve Crop Yields? Evidence from Smallholder Tea Production Systems in Kenya

Agricultural Extension services are among the most important rural services in developing countries. The services are considered to be a key driver of technological change and productivity growth in agriculture. In Kenya, like in the rest of the developing economies, agricultural extension has largely been delivered through supply–driven approaches. Due to perceived low impact of agricultural e...

متن کامل

Does the theory-driven program affect the risky behavior of drug injecting users in a healthy city? A quasi-experimental study

Background: The horror of HIV/AIDS as a non-curable, grueling disease is a destructive issue for every country. Drug use, shared needles and unsafe sex are closely linked to the transmission of HIV/AIDS. Modification or changing unhealthy behavior through educational programs can lead to HIV prevention. The aim of this study was to evaluate the efficiency of theory-based education intervention ...

متن کامل

Macroeconomic effects of IMF-sponsored programs in Latin America: output costs, program recidivism and the vicious cycle of failed stabilizations

We investigate the effects of IMF stabilization programs, and the reasons behind the unusually high IMF activity and relatively low program completion rates in Latin America. We base our tests on a panel, and distinguish between IMF program approvals and completion. We find that Latin America has higher output costs of IMF programs (especially when completed), no improvement in the current acco...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1705.09042  شماره 

صفحات  -

تاریخ انتشار 2017